package square;


import static org.junit.Assert.*;

import java.math.BigDecimal;

import org.junit.Before;
import org.junit.Test;


public class TransparentSquareTest {

	private static TransparentSquare tSquare1;
	private static TransparentSquare tSquare2;
	private static Temperature temperature1;
	
	@Before
	public void setUp() throws Exception {
		temperature1 = new Temperature(4, TemperatureScale.CELCIUS);
		tSquare1 = new TransparentSquare(temperature1, new BigDecimal(0), Direction.NORTH);
		tSquare2 = new TransparentSquare(temperature1, new BigDecimal(0), Direction.NORTH);
	}

	@Test
	public void canAttachBorderInDirection_LegalCase(){
		assertTrue(tSquare1.canAttachBorderInDirection(Direction.SOUTH));
	}
	
	@Test
	public void canAttachBorderInDirection_IllegalCase(){
		assertFalse(tSquare2.canAttachBorderInDirection(Direction.EAST));
	}
	

}
